package com.deepblue.image.maker.enums;

/**
 * 业务码
 *
 * @ClassName BusinessEnum
 * @Description
 * @Author yangxd
 * @Date 2021/8/19 11:44
 * @Version 1.0
 **/
public enum BusinessEnum {
    /**
     * 成功
     */
    SUCCESS("10000", "成功"),
    /**
     * 失败
     */
    FAIL("-1", "失败"),

    /**
     * 参数异常
     */
    PARAM_ERROR("10001", "参数异常"),

    /**
     * 接口调用失败
     */
    INTERFECE_INVOKER_ERROR("10002", "接口调用失败"),
    /**
     * 登录失败
     */
    LOGIN_ERROR("10003", "登录失败"),

    /**
     * 认证失败
     */
    AUTH_FAIL("10004", "认证失败");

    private String code;

    private String msg;

    BusinessEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
